import { MdDialogRef, MD_DIALOG_DATA } from '@angular/material';
import { Component, OnInit, Inject } from '@angular/core';

@Component({
  selector: 'app-delete-confirm',
  templateUrl: './delete-confirm.component.html',
  styleUrls: ['./delete-confirm.component.css']
})
export class DeleteConfirmComponent implements OnInit {
  title: string
  constructor(
    public dialog: MdDialogRef<DeleteConfirmComponent>,
    @Inject( MD_DIALOG_DATA ) public data: any
  ) { }

  ngOnInit() {
    console.log(this.data);
  }

  close(bool){
    this.dialog.close(bool);
  }
}
